package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDTO;
import com.itheima.reggie.entity.Dish;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDTO dishDTO);

    Page<DishDTO> pageCustom(Page<DishDTO> pageInfo, QueryWrapper<Dish> queryWrapper);

    DishDTO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);

}
